//Hour Table printing controller
function printHourTable(employee, hourTable){
	if(window.print){
		var newWindow = window.open();
		$('body',newWindow.document).append(
			$('<table><tr><th>Employee Name</th><th>Employee ID</th></tr></table>')
			.append('<tr><td>'+employee.name+'</td><td>'+employee.id+'</td></tr>').css({
				'text-align':'center'
			})
		).append(
			hourTable.clone()
			//Remove edit links from table
			.find('th:contains("Edit")').remove().end()
			.find('td:has("a")').remove().end()
		).find('table').css({
			'width':'100%',
			'border-left':'1px solid #888'
			}).end()
		.find('td, th').css({
			'border-bottom':'1px solid #222'
			}).end()
		.find('td, th').css({
			'border-right':'1px solid #888',
			}).end()
		.find('th').css({
			'font-weight':'bold'
			}).end()
		newWindow.print();
		newWindow.close();
	} else {
		alert('Printing is not supported on this device');
	}
}
